#include<bits/stdc++.h>
using namespace std;
#define MM 100005
int n;
int a[MM];
int res;
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","o",stdout);
    scanf("%d",&n);
    int t;
    int maxn;
    for(int i=0;i<n;i++){
        scanf("%d",&t);
        a[t]++;
        maxn=max(maxn,t);
    }
    for(int i=0;i<=maxn;i++){
        if(a[i]!=0&&res!=0){
            if(res<=a[i]){
                res=a[i];
            }
        }else{
            res+=a[i];
        }
    }
    printf("%d",res);
    return 0;
}
